﻿using System;
using NUnit.Framework;
using Smartkernel;

namespace Smartkernel.NUnitTest.
{
    [Category("Core")]
    [TestFixture]
    public class SmartChineseCurrencyTest
    {
        [Test]
        public void Test()
        {
            //【01】金额转换为大写形式的测试（涉及方法：ConvertTo）
            Assert.AreEqual(SmartChineseCurrency.ConvertTo(56987123), "伍仟陆佰玖拾捌万柒仟壹佰贰拾叁元");
            Assert.AreEqual(SmartChineseCurrency.ConvertTo(56987.123), "伍万陆仟玖佰捌拾柒元壹角贰分");
        }
    }
}
